<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>vue2</title>
    <script src="../dist/vue.js"></script>
  </head>

  <body>
    <div id="app"></div>
  </body>
  <script>
    Vue.mixin({
      beforeCreate() {
        console.log("beforeCreate-hulei1");
      },
      name: "hl",
    });

    Vue.mixin({
      age: 18,
    });

    Vue.mixin({
      beforeCreate() {
        console.log("beforeCreate-hulei2");
      },
      name: "hulei",
    });

    const app = new Vue({
      el: "#app",
      beforeCreate() {
        console.log("beforeCreate-hulei3");
      },
      data() {
        return {
          name: "hulei",
        };
      },
    });
  </script>
</html>
